<?php

	const ADMIN = 1;

	const PREG_MOBILE = '#^13[\d]{9}$|^14[\d]{9}$|^15[\d]{9}$|^16[\d]{9}$|^17[\d]{9}$|^18[\d]{9}$|^19[\d]{9}$#';
	const STATUS_NORMAL = 1;
	const STATUS_FREEZE = 0;

	const WEEK = ["星期天","星期一","星期二","星期三","星期四","星期五","星期六"];
	const NON_IMAGE = '/assets/images/placehoder.png';
	const SAFECODE = '1';

	const REGISTER_BACKEND = 1;	//后台注册用户
	const REGISTER_NETWORK = 2;	//网络注册用户

	const PLAN_TYPE_STUDY = 1;
	const PLAN_TYPE_SCIENCE = 2;
	const PLAN_TYPE_BABY = 3;
	const PLAN_TYPE_LECTURE = 4;
	/*
		1:借方/2:贷方
	 */
	const FLAG_DEBIT 		= 1;
	const FLAG_CREDIT		= 0;

	const DEFAULT_PASSWORD  = '123456';
	const DEFAULT_YEAR  = '15';
	const PATH_BOOKCOVER = 'assets/images/books/';
	const DWZ = 'http://lib.csccc.org.cn/u/';
	const LEN_DWZ = 26;
	const LEN_ACCOUNT = 5;

	/*
		0:新书/1:未破损/2:损坏可借阅/3:损坏不可借阅
	 */
	const BOOK_DAMAGE_NEW = 0;
	const BOOK_DAMAGE_NODAMAGE = 1;
	const BOOK_DAMAGE_CANBORROW = 2;
	const BOOK_DAMAGE_NOTBORROW = 3;


	//志愿者奖励/参与者收益

	const RECORD_D_REWARD 	= 1;
	const RECORD_D_GAIN 	= 2;

	//活动状态
	const ACT_NORMAL 		= 1;
	const ACT_BEGIN 		= 0;
	const ACT_FINISHED 		= -1;

	//签到状态
	const SIGN_SUCCESS = 1;
	const SIGN_FAILURE = 0;
	const SIGN_DUPLICATE = 2;

	//流水类型
	const D_REWARD 	= 1;	//志愿者奖励
	const D_GAIN 		= 2;	//参与者奖励
	const C_GIFT 	 	= 3;	//礼品兑换

	/**
	 * json返回码和返回信息
	 */
	const MSG_SUCCESS = 'SUCCESS';
	const MSG_FAILED = 'FAILED';

	const CODE_SUCCESS = 0;	//成功
	const CODE_FAILED = 1;	//失败
	const CODE_UNAUTHORIZE = 9;	//未授权

	const QUESTION_SELECT = 1;
	const QUESTION_BLANK = 2;
?>